package com.situ.day4;

import org.junit.Test;

public class OOPDemo {

    @Test
    public void test1() {
        Student student = new Student();
        student.setId(1);
        student.setName("zhangsan");
        //student.age = 23;
        student.setAge(23);
        System.out.println(student.getAge());
        System.out.println(student);

        Student student1 = new Student(2, "wangwu", 23, "男");
        System.out.println(student1);
    }
}
